package com.drotposta.unitils.ejb;

import javax.annotation.Resource;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;

/**
 *
 * @author elek
 */
@Stateless
public class SampleSessionBean extends ParentSession implements SampleSessionLocal {

    @Resource
    SessionContext context;

    public String getHello() {
        return "Hello";
    }

    public String getCurrentUserName() {
        return context.getCallerPrincipal().getName();
    }
}
